#ifndef FORMATDIALOG_H
#define FORMATDIALOG_H

#include <QDialog>
#include <QList>
#include <QString>
#include <QProgressDialog>
#include <boost/shared_ptr.hpp>

namespace Ui {
    class FormatDialog;
}
class FileBrowser;

class FormatDialog : public QDialog {
    Q_OBJECT
public:
	FormatDialog(const QList<QString>& driveList, FileBrowser *parent = 0);
    ~FormatDialog();
public slots:
	void onFormatResult(int result);
private slots:
	void onFormatButton();
private:
	void setupWidgets();
	void setupSignals();
protected:
    void changeEvent(QEvent *e);

private:
    Ui::FormatDialog *ui;
	FileBrowser* m_FileBrowser;
	QProgressDialog* m_ProgressDialog;
};

#endif // FORMATDIALOG_H
